$(document).ready(function () {
    let rows=5
    let cell=6
    for(let rowIndex=0;rowIndex<rows;rowIndex++){
        let rowDiv=$("<div>")
        rowDiv.addClass("rowDiv")
        for(let cellIndex=0;cellIndex<cell;cellIndex++){
            let cellDiv=$("<div>")
            cellDiv.css({
                "width":"30px",
                "height":"30px",
                "border":"1px black solid",
                "background-color":"antiquewhite"
            })
            rowDiv.append(cellDiv)
        }
        $("#main").append(rowDiv)
    }
});